//
//  ZPSelectTiaoClassCell.m
//  ZPIOSEducation
//
//  Created by mini1 on 2017/1/16.
//  Copyright © 2017年 mini1. All rights reserved.
//

#import "ZPSelectTiaoClassCell.h"
@interface ZPSelectTiaoClassCell ()

@end
@implementation ZPSelectTiaoClassCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectedBackgroundView = [UIView new];
    ViewRadius(self.teacherImgV, self.teacherImgV.xj_width / 2);
    UITapGestureRecognizer *tap =[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(detailBtn:)];
    [_teacherImgV addGestureRecognizer:tap];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
    _isSelectedImgV.highlighted=selected;
}
- (IBAction)detailBtn:(UIButton *)sender {
    if (_detailBlock) {
        _detailBlock(_teacherId);
    }
}


@end
